﻿namespace UnityEngine
{
    using System;
    using System.Runtime.InteropServices;

    [StructLayout(LayoutKind.Sequential)]
    public struct AnimatorTransitionInfo
    {
        private int m_Name;
        private int m_UserName;
        private float m_NormalizedTime;
        public bool IsName(string name)
        {
            return (Animator.StringToHash(name) == this.m_Name);
        }

        public bool IsUserName(string name)
        {
            return (Animator.StringToHash(name) == this.m_UserName);
        }

        public int nameHash
        {
            get
            {
                return this.m_Name;
            }
        }
        public int userNameHash
        {
            get
            {
                return this.m_UserName;
            }
        }
        public float normalizedTime
        {
            get
            {
                return this.m_NormalizedTime;
            }
        }
    }
}

